<template>
	<view class="page-payment">
		<view class="module-info">
			<view class="iconfont icondingdan"></view>
			<view class="info-tips">请完成支付</view>
			<view class="info-price">
				支付金额
				<text class="price">￥180</text>
			</view>
		</view>
		<view class="module-pay-way">
			<view class="module-header">支付方式</view>
			<view class="module-body">
				<view class="item" @click="handleWechatPay">
					<view class="iconfont iconweixindenglu">微信支付</view>

					<view class="iconfont iconjiantou"></view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
export default {
	data() {
		return {};
	},
	onLoad() {},
	methods: {
		handleWechatPay() {
			uni.navigateTo({
				url: '../pay-success/index',
			});
		},
	},
};
</script>

<style lang="scss">
.page-payment {
	background: #f5f5f5;
}

.module-info {
	background: #fff;
	padding: 40rpx 0;
	margin: 0 0 24rpx;
	text-align: center;
	color: #888;
	.info-tips {
		font-size: 30rpx;
	}
	.icondingdan {
		display: block;
		font-size: 120rpx;
		color: #ccc;
	}

	.price {
		color: $uni-text-price;
		font-size: 36rpx;
	}
}
.module-pay-way {
	background: #fff;
	.module-header {
		padding: 20rpx 28rpx;
		font-size: 24rpx;
		color: #888;
		border-bottom: 1px solid #eee;
	}
	.module-body {
		padding: 0 28rpx;
	}
	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: $uni-spacing-lg 0;
		overflow: hidden;
		border-bottom: 1px solid #eee;
		font-size: $uni-font-size-base;
	}
	.iconweixindenglu {
		display: flex;
		align-items: center;
		&::before {
			color: #00c800;
			font-size: 36rpx;
			margin-right: 10rpx;
		}
	}
	.iconjiantou {
		float: right;
	}
}
</style>
